<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of BUIService
 *
 * @author jianfeng
 */
class BUIService extends BUINode {
    
    public function __construct($node = NULL) {
        parent::__construct($node);
        $this->service = $node;
    }

    public function render($data = null) {
        //parent::render($config, $style);
        //$this->renderMenu('leftMenu', $style);
        //return $this->gotoScreen('Service', $this, $config);
        $screen = 'BScreenService';
        $this->renderNode(null, $screen, $data);
    }

    public function renderCreateService($config = null) {
        //$screenName = isset($_POST['bilyn_screen_name'])?$_POST['bilyn_screen_name']:'CreateServiceMeta';
        //return $this->gotoScreen($screenName,$this,$config,$style);
        return $this->gotoScreenFlow('BScreenCreateService', $this, $config);
    }

    public function renderJoinService($config = null) {
        return $this->gotoScreen('BScreenJoinService', $this, $config);
    }

    public function getUrl($data) {
        return $this->buildUrl($this->service->getId(), NULL, NULL, $data);
    }

}

?>
